package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

// ...其他import
@Data
@Setter
@Getter
@TableName("dishes")
public class Dish {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private BigDecimal price;
    @TableField("restaurant_id")
    private Integer restaurantId;
    @TableField("department_id")
    private Integer departmentId;
    private Integer quantity;
    @TableField(fill = FieldFill.INSERT)
    private String category = "其他";
    private LocalDateTime categorizedAt;
}